package kr.hkit.powerjava.chapter11.work;

public class Phone {
	String made;
	int cost;
	String g;
	public Phone(String made, int cost, String g) {
		super();
		this.made = made;
		this.cost = cost;
		this.g = g;
	}
	public String getMade() {
		return made;
	}
	public void setMade(String made) {
		this.made = made;
	}
	public int getCost() {
		return cost;
	}
	public void setCost(int cost) {
		this.cost = cost;
	}
	public String getG() {
		return g;
	}
	public void setG(String g) {
		this.g = g;
	}
}

class SmartPhone extends Phone{
	String type;
	String version;
	int memory;
	String camera;
	String blue;
	public SmartPhone(String made, int cost, String g, String type,
			String version, int memory, String camera, String blue) {
		super(made, cost, g);
		this.type = type;
		this.version = version;
		this.memory = memory;
		this.camera = camera;
		this.blue = blue;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public int getMemory() {
		return memory;
	}
	public void setMemory(int memory) {
		this.memory = memory;
	}
	public String getCamera() {
		return camera;
	}
	public void setCamera(String camera) {
		this.camera = camera;
	}
	public String getBlue() {
		return blue;
	}
	public void setBlue(String blue) {
		this.blue = blue;
	}
	@Override
	public String toString() {
		return String
				.format("SmartPhone%n 운영체제타입 : %s%n 운영체제버전 : %s%n 메모리 크기 : %s%n 카메라장착여부 : %s%n "
						+ "블루투스지원여부 : %s%n 제조사 : %s%n 가격 : %s원%n 통신타입 : %s%n",
						type, version, memory, camera, blue, made, cost, g);
	}	
}
